public class Person
{
        int age;
        String name;
        void eat()
        {
            System.out.println("我爱吃XXX");
        }
        public Person(String name,int age)
        {
            this.age=age;
            this.name=name;
        }
        public Person()//默认构造函数
        {

        }
}